<div class="modal-header">
	<h5 class="modal-title" id="exampleModalLabel">{$vo['id'] ? '编辑项目' : '创建项目'}</h5>
	<button type="button" class="close" data-dismiss="modal" aria-label="Close">
		<span aria-hidden="true">&times;</span>
	</button>
</div>
<div class="modal-body">
	<div class="form-group row">
		<label for="example-text-input" class="col-sm-2 col-form-label text-right">项目编号</label>
		<div class="col-sm-10">
			<input class="form-control" type="text" id="project_code" name="project_code" value="{$vo.project_code}">
		</div>
	</div>
	<div class="form-group row">
		<label for="example-text-input" class="col-sm-2 col-form-label text-right">项目名称</label>
		<div class="col-sm-10">
			<input class="form-control" type="text" id="project_name" name="project_name" value="{$vo.project_name}">
		</div>
	</div>
	<div class="form-group row">
		<label for="example-text-input" class="col-sm-2 col-form-label text-right">项目地点</label>
		<div class="col-sm-10">
			<input class="form-control" type="text" id="project_addr" name="project_addr" value="{$vo.project_addr}">
		</div>
	</div>
	<div class="form-group row">
		<label class="col-sm-2 col-form-label text-right">项目阶段</label>
		<div class="col-sm-10">
			<select id="project_progress" name="project_progress" class="form-control">
				<option {$vo['project_progress']=='方案设计' ? 'selected' : ''}>方案设计</option>
				<option {$vo['project_progress']=='施工图设计' ? 'selected' : ''}>施工图设计</option>
				<option {$vo['project_progress']=='监控软件设计' ? 'selected' : ''}>监控软件设计</option>
			</select>
		</div>
	</div>
	<div class="form-group row">
		<label class="col-sm-2 col-form-label text-right">设计模板</label>
		<div class="col-sm-10">
			<select id="module_ids" name="module_ids" class="form-control">
				<option value="">请选择</option>
				<foreach name="modules" item="voo">
				  <option value="{$key}" {$vo['module_ids']==$key ? 'selected' : '' }>{$voo}</option>
				</foreach>
			  </select>
		</div>
	</div>
	<div class="form-group row">
		<label for="intro" class="col-sm-2 col-form-label text-right">项目描述</label>
		<div class="col-sm-10">
			<textarea class="form-control" id="intro" name="intro" rows="3">{$vo.intro}</textarea>
		</div>
	</div>
</div>
<div class="modal-footer">
	<input type="hidden" name="act" value="{$vo['id'] ? 'edit' : 'add'}" />
	<input type="hidden" name="id" value="{$vo.id}" />
	<button type="submit" class="btn btn-info px-4 align-self-center report-btn">{$vo['id'] ? '立即保存' : '立即创建'}</button>
</div>
